﻿<UserControl x:Class="Sanctuary.IntroScreen"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
    xmlns:local="clr-namespace:Sanctuary"
    mc:Ignorable="d" Loaded="UserControl_Loaded" Unloaded="UserControl_Unloaded">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <i:Interaction.Triggers>
            <i:EventTrigger EventName="Loaded">
                <local:SetFocusTrigger TargetName="StartHere"/>
            </i:EventTrigger>
        </i:Interaction.Triggers>

        <Image Source="Images/Login.jpg" Stretch="Fill" />
        <StackPanel VerticalAlignment="Bottom">
            <Border  Name="border" HorizontalAlignment="Center" BorderThickness="5" CornerRadius="10" Style="{StaticResource GlassBorderStyle}" Padding="20" Margin="20"
                     Background="{StaticResource StripedBackground}">
                
                <Grid HorizontalAlignment="Center">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition />
                        <RowDefinition />
                        <RowDefinition />
                        <RowDefinition />
                    </Grid.RowDefinitions>

                    <TextBlock Margin="5, 5, 0, 0" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" Style="{StaticResource CustomGradientText}">User Name:</TextBlock>
                    <TextBox x:Name="StartHere" Margin="5, 0, 5, 5" Grid.Row="1" Grid.Column="0" Width="250" IsTabStop="True"></TextBox>
                    <TextBlock Margin="5, 5, 0, 0" Grid.Row="2" Grid.Column="0" HorizontalAlignment="Left" Style="{StaticResource CustomGradientText}">Password:</TextBlock>
                    <PasswordBox Name="TextPassword" Margin="5, 0, 5, 5" Grid.Row="3" Grid.Column="0" Width="250" IsTabStop="True"></PasswordBox>
                    <Button Margin="10, 0, 0, 0" Grid.Row="4" Grid.Column="1" Style="{StaticResource GelButton}" HorizontalAlignment="Right" >
                        <TextBlock Margin="5" Text="Login" Style="{StaticResource CustomGradientText}"/>
                    </Button>
                </Grid>
            </Border>

                <Button Margin="20" Style="{StaticResource GelButton}" HorizontalAlignment="Right" >
                    <TextBlock Margin="5" Text="+New User" Style="{StaticResource CustomGradientText}"/>
                </Button>

        </StackPanel>
    </Grid>
</UserControl>
